<template>
	<view class="padding-lr32">
		<uv-parse :content="detail.content"></uv-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: '',
				detail: '',
			}
		},
		onLoad(option) {
			this.id = option.id;
			this.getDetail();
		},
		methods: {
			getDetail() {
				var that = this;
				uni.$uv.http.get('/navPage/findById', {
					params: {
						id: that.id
					}
				}).then(res => {
					that.detail = res.data;
					uni.setNavigationBarTitle({
						title: that.detail.navTitle
					});
				});
			},
		}
	}
</script>

<style>

</style>